//导入koa-router模块。
const router = require("koa-router")();
const controllers = require("../controllers");
// 只写文件名默认会读取文件里的index.js
router.get("/", controllers.index);
router.get("/add",controllers.add);
router.post("/doAdd",controllers.doAdd);
router.get("/doDelete",controllers.doDelete);
router.get("/edit",controllers.edit);
router.post("/doEdit",controllers.doEdit);
module.exports = router;